package com.only4play.practice.customerapi;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @author mdy
 * * @date 2024/9/13
 */
@SpringBootApplication
@EnableFeignClients(basePackages = "com.only4play.practice.ordercenter.api.feign")
@ComponentScans({
        // 扫描自定义异常，不然不生效
//        @ComponentScan(basePackages = "com.only4play.practice.common.exception"),
//         扫描自定义配置类，不然不生效
//        @ComponentScan(basePackages = "com.only4play.practice.common.config")
})
@Slf4j
public class CustomerApiApp {

    public static void main(String[] args) {
        SpringApplication.run(CustomerApiApp.class, args);
        log.info("customer api start");
    }
}
